<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./node_modules/vue/dist/vue.js"></script>
</head>
<body>
    <div id="app">
        <info>
            <div slot="header">我们即将毕业</div>
            <div slot="footer">即将迎接高新</div>
        </info>
    </div>
    <template id="info">
        <div>
            <slot name="footer"></slot>
            <span>姓名：</span>
            <div>
                aaaaaaaaaaaa
                <slot name="header"></slot>
                aaaaaaaaaaa
            </div>
            
        </div>
    </template>
    <script>
        const info = {
            template:"#info"
        }

        //1.创建Vue实例
        const vm = new Vue({
            el:"#app",
            components: {
                info
            }
        })

    </script>
</body>
</html>